import service from '@/utils/request'

// @Tags BcPhone
// @Summary 创建bcPhone表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcPhone true "创建bcPhone表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /bcPhone/createBcPhone [post]
export const createBcPhone = (data) => {
  return service({
    url: '/bcPhone/createBcPhone',
    method: 'post',
    data
  })
}

// @Tags BcPhone
// @Summary 删除bcPhone表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcPhone true "删除bcPhone表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcPhone/deleteBcPhone [delete]
export const deleteBcPhone = (data) => {
  return service({
    url: '/bcPhone/deleteBcPhone',
    method: 'delete',
    data
  })
}

// @Tags BcPhone
// @Summary 批量删除bcPhone表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除bcPhone表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcPhone/deleteBcPhone [delete]
export const deleteBcPhoneByIds = (data) => {
  return service({
    url: '/bcPhone/deleteBcPhoneByIds',
    method: 'delete',
    data
  })
}

// @Tags BcPhone
// @Summary 更新bcPhone表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcPhone true "更新bcPhone表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /bcPhone/updateBcPhone [put]
export const updateBcPhone = (data) => {
  return service({
    url: '/bcPhone/updateBcPhone',
    method: 'put',
    data
  })
}

// @Tags BcPhone
// @Summary 用id查询bcPhone表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.BcPhone true "用id查询bcPhone表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /bcPhone/findBcPhone [get]
export const findBcPhone = (params) => {
  return service({
    url: '/bcPhone/findBcPhone',
    method: 'get',
    params
  })
}

// @Tags BcPhone
// @Summary 分页获取bcPhone表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取bcPhone表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /bcPhone/getBcPhoneList [get]
export const getBcPhoneList = (params) => {
  return service({
    url: '/bcPhone/getBcPhoneList',
    method: 'get',
    params
  })
}
